home *** CD-ROM | disk | FTP | other *** search
- public class EffectDiscPotence extends Codex {
- private int padGuid;
-
- public void EndEffect(int actorGuid) {
- CodexThing pad = new CodexThing(this.padGuid);
- pad.Remove();
- CodexActor _Creator = new CodexActor(actorGuid);
- ((CodexThing)_Creator).EndShell();
- }
-
- public void restore(int flags) {
- this.padGuid = CodexSequence.RestoreInt();
- }
-
- public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
- CodexActor _Creator = new CodexActor(actorGuid);
- ((CodexThing)_Creator).SpawnThing("ringTower");
- ((CodexThing)_Creator).SetShell("redCloudShell_b", 4096, 0.0F, 0.3F, 1.0F, 1.0F);
- this.padGuid = ((CodexThing)_Creator).SpawnThing("sawToothBlue");
- float[] offset = new float[3];
- offset[0] = offset[1] = offset[2] = 0.0F;
- ((CodexThing)_Creator).AttachThing(this.padGuid, -1, offset, 1);
- ((Codex)this).CaptureThing(actorGuid);
- }
-
- public void killed(int guid, int causeID, int captureID) {
- this.EndEffect(guid);
- }
-
- public void save(int flags) {
- CodexSequence.SaveInt(this.padGuid);
- }
-
- public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
- this.EndEffect(actorGuid);
- }
- }
-